/*
package com.dony.web.controller.store;

import com.dony.common.core.domain.AjaxResult;

import com.dony.store.service.LazadaService;
import com.lazada.lazop.util.ApiException;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;


@RestController
@RequestMapping("/lazada")
public class LazadaController {

    @Resource
    private LazadaService lazadaService;

    */
/**
     * 生成授权链接
     *//*

    @PostMapping("/createAccessTokenUrl")
    public AjaxResult createAccessTokenUrl()
    {
        // https://auth.lazada.com/oauth/authorize?response_type=code&force_auth=true&redirect_uri=${app call back url}&client_id=${appkey}
        // https://auth.lazada.com/oauth/authorize?response_type=code&force_auth=true&redirect_uri=https://parktest.octvisionland.com&client_id=104512
        String url = lazadaService.createAccessTokenUrl();
        return  AjaxResult.success(url);
    }

    */
/**
     * 获取Lazada token
     *//*

    @RequestMapping(path = "/getAccessToken" , method = {RequestMethod.POST , RequestMethod.GET})
    public AjaxResult getAccessToken(@RequestParam("code") String code) throws ApiException {
        // 0_104512_1QBclsNqCqh4772u87mJ2Ble8731
//        code = "0_104512_1QBclsNqCqh4772u87mJ2Ble8731";
        String accessToken = lazadaService.getAccessToken(code);
        return  AjaxResult.success(accessToken);
    }

    */
/**
     * 获取订单列表
     *//*

    @RequestMapping(path = "/getOrderList" , method = {RequestMethod.POST , RequestMethod.GET})
    public AjaxResult getOrderList() throws ApiException {
        // 0_104512_1QBclsNqCqh4772u87mJ2Ble8731
//        code = "0_104512_1QBclsNqCqh4772u87mJ2Ble8731";
        String accessToken = lazadaService.getOrderList();
        return  AjaxResult.success(accessToken);
    }


}
*/
